<?php
echo "<?xml version='1.0' encoding='UTF-8'?>
<playlist >
<tracklist>";
$temp = 1;
foreach ($urlList as $item) :
    $path = 'Part ' . $temp;
    echo "
        <track>
            <title>$path</title>
            <location>" . trim($item) . "</location>
        </track>";
    $temp++;
endforeach;
echo "</tracklist>
</playlist>";
?>
